package com.huawei.crm.web.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * 商品详情VO
 */
@Data
public class GoodsDetailVO implements Serializable {
    private static final long serialVersionUID = 1039838929938307393L;
    private boolean success;
    private Result result;

    @Data
    public static class Result implements Serializable {

        private static final long serialVersionUID = -2009243898063746875L;

        private Item data;
    }

    @Data
    public static final class Item implements Serializable {

        private static final long serialVersionUID = -9087648078793715851L;

        /**
         * 商品主键标识
         */
        private String id;

        /**
         * 商品分类
         */
        private String categoryPath;

        /**
         * 商品名称
         */
        private String goodsName;

        /**
         * 单价
         */
        private Integer price;

        /**
         * 商品缩略图
         */
        private String small;

        /**
         * 商品库存
         */
        private Integer quantity;
    }

}
